#include "ressort.h"
#include "../Ressources.h"

Ressort::Ressort(PlateForme *cubeAssoc , SDL_Surface *ec ) : Accessoir(cubeAssoc,Ressources::get_image(RESORTBAS),ec) {
}

bool Ressort::reagit(Pion *p , int dir){
	if(dir <= 0){
		position.y = position.y - (22-8);
		setImage(Ressources::get_image(RESORTHAUT));
		p->relancer(80);
	}
	return true;
}
